package com.lbj.mall.order.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

// ConfigurationProperties 可以在配置文件中使用
@ConfigurationProperties(prefix = "mall.thread")
// Component 加入到容器中
@Component
@Data
public class ThreadPoolProperties {
    private Integer coreSize;
    private Integer maxSize;
    private Integer keepTime;
}
